package com.ttianjun.spring.service;

import com.ttianjun.spring.model.ClassInfo;
import com.ttianjun.spring.model.ClassInfoExample;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by djei on 2015-04-22.
 */
@Service
public class ClassInfoService extends  BaseService<ClassInfo> {
    public List<ClassInfo> getClassInfoByStudentcount(int studentcount){
        ClassInfoExample example = new ClassInfoExample();
        example.createCriteria().andStudentcountEqualTo((byte) studentcount);
        return mapper.selectByExample(example);
    }
}
